﻿
using DataAccess.Stock;
using Model;

namespace Service
{
  public class StockServiceSupplier:ServiceBase 
    {
       StockDataAccess mgr;
        public StockServiceSupplier()
        {
            mgr = new StockDataAccess();
        }
        public void DeleteSupplier(int companyId)
        {
            string query = "From Supplier where CompanyId=" + companyId;
            mgr.DeleteObject(query);
        }
        public void UpdateSupplier(Supplier supplier)
        {
            mgr.Save(supplier);
        }

    }
}
